package com.ygq;


import DTO.SubmitStudentScoreDTO;
import VO.UserMsgVO;
import VO.WorkMsgVO;
import VO.WorkScoreVO;
import VO.WorksVO;
import result.Result;

import java.time.LocalDateTime;
import java.util.List;

public interface GradesService {

    // 获取班级信息
    List<WorksVO> getWorks(Integer classId);

    // 查询该班级的成绩状态
    List<WorkScoreVO> getWorkScores(Integer classId, Integer workId);

    LocalDateTime getEndtime(Integer classId, Integer workId);

    List<Integer> getUserIds(Integer classId);

    UserMsgVO getUserMsg(Integer userId);

    WorkMsgVO getWorkmsg(Integer workId);

    // 获取代码地址
    String getAddress(Integer userId, Integer workId, Integer order);

    // 保存学生得分
    Integer submitStudentScore(SubmitStudentScoreDTO submitStudentScoreDTO);

    // 获取学生得分情况
    List<Double> getStudentScore(Integer userId, Integer workId);

    Integer updateStudentScore(SubmitStudentScoreDTO submitStudentScoreDTO);
}
